#include <iostream>
#include <thread>
#include <ucontext.h>
#include <unistd.h>
using namespace std::chrono_literals;

int main(int argc, char *argv[]) {
  ucontext_t ucontext;
  getcontext(&ucontext);
  std::cout << "hello, world!" << std::endl;
  std::this_thread::sleep_for(1s);
  setcontext(&ucontext);

  return 0;
}
